package ar.com.personalTravellers.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

import com.angel.architecture.persistence.base.PersistentObject;

@Entity
public class HotelImage extends PersistentObject{

	private static final long serialVersionUID = -2448536758564458333L;

	private String fileName;

    private String description;

    @Enumerated(value = EnumType.STRING)
    @Column(nullable = false)
    private HotelFileType type;

    public HotelImage() {
        super();
    }

    public HotelImage(String fileName, String description, HotelFileType hotelFileType) {
        super();
        this.fileName = fileName;
        this.description = description;
        this.type = hotelFileType;
    }

    @Override
    public String toString(){
        return this.getFileName() + " [" + this.getType() + " - " + this.getDescription() + "].";
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public HotelFileType getType() {
        return type;
    }

    public void setType(HotelFileType type) {
        this.type = type;
    }
}